From 82a4e830a3772515c0276f509940d216a8f06218 Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Thu, 8 Jun 2017 11:29:09 +1200 Subject: [PATCH] iconhelper: Show error if fail to load placeholder icon --- gtk/gtkiconhelper.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c index ae62741463..aab69dbd80 100644 --- a/gtk/gtkiconhelper.c +++ b/gtk/gtkiconhelper.c @@ -454,13 +454,15 @@ ensure_surface_for_gicon (GtkIconHelper *self, if (destination == NULL) { + GError *error = NULL; destination = gtk_icon_theme_load_icon (icon_theme, "image-missing", width, flags | GTK_ICON_LOOKUP_USE_BUILTIN | GTK_ICON_LOOKUP_GENERIC_FALLBACK, - NULL); + &error); /* We include this image as resource, so we always have it available or * the icontheme code is broken */ + g_assert_no_error (error); g_assert (destination); symbolic = FALSE; } -- 2.30.2